Function Get-DefaultConfigManagerSettings
{
    [CmdletBinding()]
    Param()
    
    Process
    {
        $private:ISEOptionsVariableName = "`$psISE.Options"
        $private:DefaultISEOptionsText = Get-VariableText $ISEOptionsVariableName $psISE.Options.DefaultOptions

        $private:ConfigData = @{
            Name = "ConfigManager";
            Value = 
            @{
                Name = "Menus";
                Value = @{
                    Name = "PowerShellISEOptions";
                    Attributes = 
                    @{
                        DisplayName = "ISE Options"
                    };
                    Value = 
                    @{
                        Name = "File";
                        Attributes = 
                        @{
                            DisplayName = "_File"
                        };
                        Value = 
                        @{
                            Name = "SaveCurrentAs";
                            Attributes = 
                            @{
                                DisplayName = "_Save Current As..."
                            };
                            Value = "Save-ISEOptionsAs"
                        },
                        @{
                            Name = "Export";
                            Attributes = 
                            @{
                                DisplayName = "Export..."
                            };
                            Value = "Export-CurrentISEOptions"
                        },
                        @{
                            Name = "Import";
                            Attributes = 
                            @{
                                DisplayName = "Import..."
                            };
                            Value = "Import-ISEOptions"
                        }
                    },
                    @{
                        Name = "Default";
                        Value = $DefaultISEOptionsText
                    }
                }
            },
            @{
                Name = "Settings";
                Value = @{
                    Name = "PowerShellISEOptions";
                    Value = ([Xml](Get-XmlString $psISE.Options)).ISEOptions
                }
            }
        }
        
        Return $ConfigData
    }
}

Export-ModuleMember Get-DefaultConfigManagerSettings
